package com.example.controller.DTO;

import java.util.ArrayList;
import java.util.List;
import lombok.Data;

@Data
public class TreeDTO {

    private Integer id;
    private Integer parentId;
    private String name;
    private String image_url;
    private Integer mateId;

    private List<TreeDTO> children = new ArrayList<>();
    private List<TreeDTO> mate = new ArrayList<>();

    public Integer getMateId() {
        return mateId;
    }

    public void setMateId(Integer mateId) {
        this.mateId = mateId;
    }

    public List<TreeDTO> getMate() {
        return mate;
    }

    public void setMate(List<TreeDTO> mate) {
        this.mate = mate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage_url() {
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public List<TreeDTO> getChildren() {
        return children;
    }

    public void setChildren(List<TreeDTO> children) {
        this.children = children;
    }
}
